import { httpTokenRequest } from '../utils/http.js';

export function logInDemoMain(params) {
	return httpRequest({
		url: '/api/Logindemo/main',
		method: 'POST',
		params: params
	});
}
// 获取用户信息
export function getUserInfo(params) {
	return httpTokenRequest({
		url: '/api/user/getUserInfo',
		method: 'POST',
		params: params
	});
}
//获取即购token
export function getZegoToken(params) {
	return httpTokenRequest({
		url: '/api/Jianghunew/getzegotoken',
		method: 'POST',
		params: params
	});
}
// 微信登录
export function weChatLogin(params) {
	return httpTokenRequest({
		url: '/api/wechatlogin/appLogin',
		method: 'POST',
		params: params
	});
}